package kosta.model;

import java.sql.SQLException;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;
@Repository
public class TeacherOfMemberDaoImpl implements MemberDao{
@Resource(name="sqlSessionTemplate")
	private SqlSessionTemplate sqlSessionTemplate;

@Override
public void registerMember(MemberVO mvo) throws SQLException {
	sqlSessionTemplate.insert("member.registerTeacher",mvo);
	System.out.println(mvo+"dao");
	}
@Override
public MemberVO showMember(MemberVO mvo) throws SQLException {
	
	return sqlSessionTemplate.selectOne("member.showMember", mvo);
}	
}
